//发布心情
function addShare(){
    $.post("addShare",{content:$('#content').attr('value')},function(data){
            alert($.parseJSON(data).info);
         
       }); 
}
function saveAvatar(path){
    $.post("saveAvatar",{avatar:path},function(data){
            $('#avatar').css("background-image","url("+path+")");
       }); 
    
    
}